package com.gp.business.service.iml;

import com.gp.business.entity.Adv;
import com.gp.business.mapper.AdvMapper;
import com.gp.business.service.IAdvService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


@Service
@Transactional(rollbackFor = Exception.class)
public class AdvServiceImpl implements IAdvService {
    @Autowired
    AdvMapper advMapper;

    @Override
    public Adv getAdvById(String id) {
        return advMapper.selectByPrimaryKey(id);
    }
}
